package com.ruoyi.housing.controller;

import com.ruoyi.housing.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author 小智
 * @PachageName:com.ruoyi.housing.controller
 * @ClassName :CityConroller
 * @Description:
 * @date 2021/07/28 10:26
 */
@RestController
@RequestMapping("city")
public class CityConroller {

    @Autowired
    CityService cityService;

    @RequestMapping("queryRegionList")
    public List<Map<String,Object>> queryRegionList(@RequestBody Map<String,Object> map){
        return cityService.queryRegionList(map);
    }

    @RequestMapping("findPageByFs")
    public Object findPageByFs(@RequestBody Map<String,Object> map){
        return cityService.findPageByFs(map);
    }
}
